<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="js/check.js"></script>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>管理员登录</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<c:if test="${!empty err}">
			<div id="login">
			<font color="#FF0000">${err }</font>
		</div>
	</c:if>
	<form id="form1" name="form1" method="post" action="adminlogin" onsubmit="return userCheck()">
		<p>管理员登录</p>
		<p>
			<label for="textfield">账 号:</label> <input type="text"
				name="admin.username" id="username">
		</p>
		<p>
			<label for="password">密 码:</label> <input type="password"
				name="admin.password" id="password">
		</p>
		<p>
			<label for="textfield2">验证码:</label> <input name="code" type="text" id="code" size="6"> <img
				src="code?id=${request.Coderandom}" onclick="this.src='code?id='+Math.random()" />
		</p>
		<p>
			<input type="submit" name="submit" id="submit" value="登录"> <input
				type="reset" name="reset" id="reset" value="重新输入">
		</p>
	</form>
</body>
</html>
